
GXX = g++
RM  = rm -rf
STRIP = strip

BIN = main
LIB = lib
INC = include

LDFLAGS = -levent -levent_core -levent_extra  -levent_pthreads

#SRC = src/helloWorld.cpp
#SRC = main.cpp src/timer.cpp
#SRC = main.cpp src/myLibevent.cpp


all:
	#${GXX} ${SRC} -L${LIB} -I${INC} ${LDFLAGS} -o ${BIN}
	#${STRIP} ${BIN}

	#${GXX} src/libevent_socket_client.cpp -L${LIB} -I${INC} ${LDFLAGS} -o client
	#${GXX} src/libevent_socket_server.cpp -L${LIB} -I${INC} ${LDFLAGS} -o server

	#${GXX} src/libevent_socket_client.cpp -L${LIB} -I${INC} ${LDFLAGS} -o bufferevent_client
	#${GXX} src/libevent_socket_server.cpp -L${LIB} -I${INC} ${LDFLAGS} -o bufferevent_server

	#${GXX} src/evconnlistener_client.cpp -L${LIB} -I${INC} ${LDFLAGS} -o evconnlistener_client
	#${GXX} src/evconnlistener_server.cpp -L${LIB} -I${INC} ${LDFLAGS} -o evconnlistener_server

	${GXX} src/libevent_http.cpp -L${LIB} -I${INC} ${LDFLAGS} -o libevent_http

clean:
	${RM} ${BIN}

.PHONY: clean

